package dreamdancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// 宠物干什么表

type DancePetToDo struct {
	Id                       int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	TaskId                   int64          `json:"task_id" gorm:"column:task_id;type:bigint;not null;comment:任务id 和客户端保持一致"` // 任务id
	DoType                   int64          `json:"do_type" gorm:"column:do_type;type:bigint;not null;comment:做类型"`           // 1:学习，2:打工
	DoName                   string         `json:"do_name" gorm:"column:do_name;type:varchar(256);not null;default:'';comment:做名称"`
	DoTime                   int64          `json:"do_time" gorm:"column:do_time;type:bigint;not null;comment:做时间"`
	DoConsumption            int64          `json:"do_consumption" gorm:"column:do_consumption;type:bigint;not null;comment:消耗"`
	UnlockingIqCondition     int64          `json:"unlocking_iq_condition" gorm:"column:unlocking_iq_condition;type:bigint;not null;comment:iq解锁条件"`         //iq解锁条件
	UnlockingMuscleCondition int64          `json:"unlocking_muscle_condition" gorm:"column:unlocking_muscle_condition;type:bigint;not null;comment:体力解锁条件"` //体力解锁条件
	GetGrowth                int64          `json:"get_growth" gorm:"column:get_growth;type:bigint;not null;comment:获得的成长值"`                                 //获得的成长值
	GetIQ                    int64          `json:"get_iq" gorm:"column:get_iq;type:bigint;not null;comment:获得的智力值"`                                         //获得的智力值
	GetMuscle                int64          `json:"get_muscle" gorm:"column:get_muscle;type:bigint;not null;comment:获得的体力值"`
	GetCharm                 int64          `json:"get_charm" gorm:"column:get_charm;type:bigint;not null;comment:获得的魅力值"` //获得的魅力值
	Status                   int64          `json:"status" gorm:"column:status;type:bigint;not null;comment:状态"`           //是否上架
	CreatedAt                time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt                time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt                gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
